package com.yanqu.road.entity.log.horserun;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.List;
import java.util.Map;

@FieldTypeAnnotation(tableName = "t_l_horse_run_open_adventure", autoSave = true, dataUpload = true, eventName = "horserun_riskbegin",uploadCk = true,desc = "小马快跑开启冒险日志")
public class HorseRunStartAdventureLog extends ServerBaseLog {
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "轮次id",dataAttribute = "round_id")
    private long roundId;
    @FieldTypeAnnotation(desc = "道具消耗",dataAttribute = "horserun_use")
    private String cost;
    @FieldTypeAnnotation(desc = "当前小马评分",dataAttribute = "horserun_score")
    private long grade;
    @FieldTypeAnnotation(desc = "技能带入",dataAttribute = "horserun_holist",saveJson = true)
    private List<Integer> skillList;
    @FieldTypeAnnotation(desc = "带入基础属性",saveJson = true)
    private Map<Integer,Integer> baseAttr;
    @FieldTypeAnnotation(desc = "开启路线",dataAttribute = "horserun_play")
    private int roadType;

    public HorseRunStartAdventureLog() {
    }

    public HorseRunStartAdventureLog(int activityId, long userId, long roundId, String cost, long grade, List<Integer> skillList, Map<Integer, Integer> baseAttr, int roadType) {
        this.activityId = activityId;
        this.userId = userId;
        this.roundId = roundId;
        this.cost = cost;
        this.grade = grade;
        this.skillList = skillList;
        this.baseAttr = baseAttr;
        this.roadType = roadType;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getRoundId() {
        return roundId;
    }

    public void setRoundId(long roundId) {
        this.roundId = roundId;
    }

    public String getCost() {
        return cost;
    }

    public void setCost(String cost) {
        this.cost = cost;
    }

    public long getGrade() {
        return grade;
    }

    public void setGrade(long grade) {
        this.grade = grade;
    }

    public List<Integer> getSkillList() {
        return skillList;
    }

    public void setSkillList(List<Integer> skillList) {
        this.skillList = skillList;
    }

    public Map<Integer, Integer> getBaseAttr() {
        return baseAttr;
    }

    public void setBaseAttr(Map<Integer, Integer> baseAttr) {
        this.baseAttr = baseAttr;
    }

    public int getRoadType() {
        return roadType;
    }

    public void setRoadType(int roadType) {
        this.roadType = roadType;
    }
}
